package com.jjb.www.http.api;

import com.hjq.http.config.IRequestApi;

/**
 * @author CRG
 * @date :2023/12/20 11:26
 * @description:
 */
public class MineMessageApi implements IRequestApi {
    private Integer page;
    private Integer pageSize;

    public MineMessageApi setPage(Integer page) {
        this.page = page;
        return this;
    }

    public MineMessageApi setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
        return this;
    }

    @Override
    public String getApi() {
        return "/api/user/v2/user/getAllNews";
    }
    public static class Bean{

        private Integer id;
        private String title;
        private String thumbnail;
        private Object detail;
        private Integer message_type;
        private Integer is_send;
        private String send_time;
        private Integer read_num;
        private Integer is_question;
        private Integer is_comment;
        private String url;

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getThumbnail() {
            return thumbnail;
        }

        public void setThumbnail(String thumbnail) {
            this.thumbnail = thumbnail;
        }

        public Object getDetail() {
            return detail;
        }

        public void setDetail(Object detail) {
            this.detail = detail;
        }

        public Integer getMessage_type() {
            return message_type;
        }

        public void setMessage_type(Integer message_type) {
            this.message_type = message_type;
        }

        public Integer getIs_send() {
            return is_send;
        }

        public void setIs_send(Integer is_send) {
            this.is_send = is_send;
        }

        public String getSend_time() {
            return send_time;
        }

        public void setSend_time(String send_time) {
            this.send_time = send_time;
        }

        public Integer getRead_num() {
            return read_num;
        }

        public void setRead_num(Integer read_num) {
            this.read_num = read_num;
        }

        public Integer getIs_question() {
            return is_question;
        }

        public void setIs_question(Integer is_question) {
            this.is_question = is_question;
        }

        public Integer getIs_comment() {
            return is_comment;
        }

        public void setIs_comment(Integer is_comment) {
            this.is_comment = is_comment;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }
    }
}
